home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / gfxapps / pbmpl91d / pbmplus / man / rawtoppm.man < prev    next >
Text File  |  1993-01-08  |  2KB  |  69 lines

  1.  
  2.  
  3. rawtoppm(1)                Unix Programmer's Manual                rawtoppm(1)
  4.  
  5.  
  6. NAME
  7.      rawtoppm - convert raw RGB bytes into a portable pixmap
  8.  
  9. SYNOPSIS
  10.      rawtoppm [-headerskip N] [-rowskip N] [-rgb|-rbg|-grb  |-gbr|-brg|-bgr  ]
  11.                            -            -
  12.      [-interpixel|-interrow] width height [imagedata]
  13.                              ----- ------  ---------
  14.  
  15. DESCRIPTION
  16.      Reads raw RGB bytes as input.  Produces a portable pixmap as output.  The
  17.      input  file  is just RGB bytes.  You have to specify the width and height
  18.      on the command line, since the program obviously can't get them from  the
  19.      file.  The maxval is assumed to be 255.  If the resulting image is upside
  20.      down, run it through pnmflip -tb .
  21.  
  22. OPTIONS
  23.  
  24.      -headerskip
  25.           If the file has a header, you can use this flag to skip over it.
  26.  
  27.      -rowskip
  28.           If there is padding at the ends of the rows, you can  skip  it  with
  29.           this flag.
  30.  
  31.      -rgb -rbg -grb -gbr -brg -bgr
  32.           These flags let you specify alternate color orders.  The default  is
  33.           -rgb.
  34.  
  35.      -interpixel -interrow
  36.           These flags let you specify how the  colors  are  interleaved.   The
  37.           default  is  -interpixel,  meaning  interleaved by pixel.  A byte of
  38.           red, a byte of green, and a byte of blue, or  whatever  color  order
  39.           you specified.  -interrow means interleaved by row - a row of red, a
  40.           row of green, a row of blue, assuming standard rgb color order.   An
  41.           -interplane flag  - all the red pixels, then all the green, then all
  42.           the blue - would be an obvious extension, but  is  not  implemented.
  43.           You could get the same effect by splitting the file into three parts
  44.           (perhaps using dd), turning each part into a PGM file with rawtopgm,
  45.                          --
  46.           and then combining them with rgb3toppm.
  47.  
  48. SEE ALSO
  49.      ppm(5), rawtopgm(1), rgb3toppm(1), pnmflip(1)
  50.  
  51. AUTHOR
  52.      Copyright (C) 1991 by Jef Poskanzer.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                               06 February 1991                               1
  68.  
  69.